package com.java.cloud.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import java.util.Date;


/**
 * 终端信息表
 * 
 * @author greatesky
 * @email greatesky@hotmail.com
 * @date 2019-10-12 14:44:44
 */
@ApiModel(value = "终端信息表")
@Table(name = "sys_terminal")
@Data
@Accessors(chain = true)
public class SysTerminal{
	private static final long serialVersionUID = 1L;
	
	/**
	 * 
	 */
	@Id
	@ApiModelProperty(value = "id")
    private String id;
	
	/**
	 * 公司id
	 */
    @Column(name = "company_id")
	@ApiModelProperty(value = "公司id")
    private String companyId;
	
	/**
	 * 终端名称
	 */
    @Column(name = "name")
	@ApiModelProperty(value = "终端名称")
    private String name;
	
	/**
	 * 行政区域
	 */
    @Column(name = "region_id")
	@ApiModelProperty(value = "行政区域")
    private String regionId;
	
	/**
	 * 详细地址
	 */
    @Column(name = "address")
	@ApiModelProperty(value = "详细地址")
    private String address;
	
	/**
	 * 开始合作时间
	 */
    @Column(name = "active_date")
	@ApiModelProperty(value = "开始合作时间")
    private Date activeDate;
	
	/**
	 * 结束合作时间
	 */
    @Column(name = "fail_date")
	@ApiModelProperty(value = "结束合作时间")
    private Date failDate;
	
	/**
	 * 经度
	 */
    @Column(name = "longitude")
	@ApiModelProperty(value = "经度")
    private String longitude;
	
	/**
	 * 纬度
	 */
    @Column(name = "latitude")
	@ApiModelProperty(value = "纬度")
    private String latitude;
	
	/**
	 * 所属区域
	 */
    @Column(name = "area_id")
	@ApiModelProperty(value = "所属区域")
    private String areaId;
	
	/**
	 * 创建时间
	 */
    @Column(name = "crt_time")
	@ApiModelProperty(value = "创建时间")
    private Date crtTime;
	
	/**
	 * 创建人id
	 */
    @Column(name = "crt_user")
	@ApiModelProperty(value = "创建人id")
    private String crtUser;
	
	/**
	 * 创建人名称
	 */
    @Column(name = "crt_name")
	@ApiModelProperty(value = "创建人名称")
    private String crtName;
	
	/**
	 * 创建人IP
	 */
    @Column(name = "crt_host")
	@ApiModelProperty(value = "创建人IP")
    private String crtHost;
	
	/**
	 * 修改时间
	 */
    @Column(name = "upd_time")
	@ApiModelProperty(value = "修改时间")
    private Date updTime;
	
	/**
	 * 修改人id
	 */
    @Column(name = "upd_user")
	@ApiModelProperty(value = "修改人id")
    private String updUser;
	
	/**
	 * 修改人名称
	 */
    @Column(name = "upd_name")
	@ApiModelProperty(value = "修改人名称")
    private String updName;
	
	/**
	 * 修改人IP
	 */
    @Column(name = "upd_host")
	@ApiModelProperty(value = "修改人IP")
    private String updHost;
	
	/**
	 * 删除标识:0=否，1 = 是
	 */
    @Column(name = "del_flag")
	@ApiModelProperty(value = "删除标识:0=否，1 = 是")
    private Integer delFlag;

    /**
	 * 终端设备店主信息,一个终端添加多个店主信息，一对多
	 */
	@Transient
    private SysTerminalManager sysTerminalManager;
	
}
